<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('Service Verify')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-verify-edit" th:object="${service}">
        <input name="serviceId" th:field="*{serviceId}" type="hidden">
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">状态：</label>
            <div class="col-sm-8">
                <select class="form-control" name="serviceStatus">
                    <option></option>
                    <option th:value="${@dict.getValue('sys_service_status','verified')}" th:field="*{serviceStatus}">verified</option>
                    <option th:value="${@dict.getValue('sys_service_status','not verified')}" th:field="*{serviceStatus}">not verified</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">Comment：</label>
            <div class="col-sm-8">
                <input name="comment" class="form-control" type="text" th:field="*{verifyResult}">
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
    var prefix = ctx + "system/verify";
    $("#form-verify-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.passwordCheck('Enter your password', prefix + "/signature", function (){
                var data = $('#form-verify-edit').serializeArray();
                $.operate.save(prefix + "/edit", data);
            })
        }
    }
</script>
</body>
</html>